package com.ysd.lis.controller.inti;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.request.inti.IntinstrReusltDto;
import com.ysd.lis.request.lab.IntInstrResultParam;
import com.ysd.lis.service.inti.IntInstrResultNoChannelService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 检验业务表 前端控制器
 * </p>
 *
 * @author prs
 * @since 2024-6-3
 */
@RestController
@RequestMapping("/int/instrResultNoChannel")
public class IntInstrResultNoChannelController extends BaseController {
    @Autowired
    IntInstrResultNoChannelService intInstrResultNoChannelService;

    @ApiOperation("获取为对应通道号的仪器结果数据")
    @GetMapping("/findInstrResultNoChannelList")
    public Result findInstrResultNoChannelList(IntInstrResultParam param) {
        return intInstrResultNoChannelService.findInstrResultNoChannelList(param);
    }

    @ApiOperation("批量新增")
    @PostMapping("/saveBacthNoChannelResult")
    public Result saveBacthNoChannelResult(@RequestBody IntinstrReusltDto dto){
        return  intInstrResultNoChannelService.saveBacthNoChannelResult(dto);
    }

}
